package com.yx.cloud.event;

import android.graphics.Bitmap;

import java.util.ArrayList;
import java.util.Map;
import java.util.TimerTask;

/**
 * Created by Administrator on 2018/12/27.
 */

public class MessageEvent {
    public static final int MESSAGE_TYPE_REGISTER = 1;
//    public static final int MESSAGE_TYPE_GET_VALIDATE = 2;
    public static final int MESSAGE_TYPE_LOGIN = 3;
//    public static final int MESSAGE_TYPE_LOGOUT = 4;
    public static final int MESSAGE_TYPE_RESETPASSWORD = 5;
//    public static final int MESSAGE_TYPE_CONFIGNETWORK = 6;
//    public static final int MESSAGE_TYPE_DEVICE_LIST = 7;
//    public static final int MESSAGE_TYPE_EQUIPMENT_STATE = 8;//设备状态上报
//    public static final int MESSAGE_TYPE_ADD_ALARM = 9;
//    public static final int MESSAGE_TYPE_DELETE_ALARM = 10;
//    public static final int MESSAGE_TYPE_MODIFY_ALARM = 11;
//    public static final int MESSAGE_TYPE_QUERY_ALARM = 12;
//    public static final int MESSAGE_TYPE_CHANGE_SWITCH = 13;
//    public static final int MESSAGE_TYPE_GET_DATA_FROMSERVER = 14;
//    public static final int MESSAGE_TYPE_ONLINE_STATE = 15;
//    public static final int MESSAGE_TYPE_DOWNLOAD_HEADPICTRUE = 16;
//    public static final int MESSAGE_TYPE_SHARE = 999;
//    public static final int MESSAGE_TYPE_CLEAN_REMOVE_DEVICE = 101;
//    public static final int MESSAGE_TYPE_NEW_NAME = 120;
//    public static final int MESSAGE_TYPE_GET_VOICE_LINK = 14;
//    public static final int MESSAGE_TYPE_DELETE_EQUIPMENT = 0;
//    public static final int MESSAGE_TYPE_RESTORE_FACTORY = 17;
//    public static final int MESSAGE_TYPE_OTA_CHECK_UPGRADE_SUCCESS = 19;
//    public static final int MESSAGE_TYPE_OTA_CHECK_UPGRADE_FAILURE = 20;
//    public static final int MESSAGE_TYPE_OTA_UPGRADE_FAILURE = 21;
//    public static final int MESSAGE_TYPE_OTA_UPGRADE_SUCCESS = 22;
//    public static final int MESSAGE_TYPE_OTA_UPGRADE_PROCESS = 23;
//    public static final int MESSAGE_TYPE_SEND_SWEEP_SUCCESS = 24;

    public static final int GETCODE_STATE = 100;
//    public static final int GETCODE_STATE_RESET = 104;
//    public static final int GETCODE_STATE_RESET_CHECK = 105;
//    public static final int MESSAGE_NEW_MESSAGE = 101;
//    public static final int MESSAGE_NEW_MESSAGE_PUSH = 102;
//    public static final int GET_EQUIPMENT_ERROR = 103;

    //本地模拟地图数据显示
    public static final int MESSAGE_TYPE_MAP_SHOW_LOCAL = 18;
    //跳转界面刷新区域禁区
    public static final int MESSAGE_TYPE_REFRESH_AREA = 1008;
    //跳转界面刷新禁区
    public static final int MESSAGE_TYPE_REFRESH_RESTRICT_AREA = 1007;
//    //显示清扫记录地图
//    public static final int MESSAGE_TYPE_SHOW_RECORD_MAP = 1009;
//    //弹框
//    public static final int MESSAGE_TYPE_TOAST_DIALOG = 1001;
//
//    public static final int MESSAGE_TYPE_REFRESH_MAP = 1010;
//
//    public static final int MESSAGE_TYPE_MERGE_AREA_SUCCESS = 1011;
//
//    public static final int MESSAGE_TYPE_MERGE_AREA_FAIL = 1012;
//
//    public static final int MESSAGE_TYPE_REFRESH_ROOM_TAG = 1013;
//
//    public static final int MESSAGE_TYPE_GET_MAPDATA_FAIL = 1014;
//
//    public static final int MESSAGE_TYPE_GET_MAPDATA_SUCCESS = 1015;
//
//    public static final int MESSAGE_TYPE_RENAME_AREA_SUCCESS = 1016;
//
//    public static final int MESSAGE_TYPE_RENAME_AREA_FAIL = 1017;
//    //设备状态更新
//    public static final int MESSAGE_TYPE_DEVICE_STATE = 1018;
//    public static final int MESSAGE_TYPE_DEVICE_STATE_SHOW = 20000;
//    public static final int MESSAGE_TYPE_DEVICE_ELSE_SHOW = 30000;
//    public static final int MESSAGE_TYPE_CUSTOM_MODE_SELECTED = 1019;


    private int messageType;
    private String code;
    private String message;
    private String url;
    private String bucket;
    private byte[] mapData;
    private ArrayList<TimerTask> taskArrayList = null;
    private Bitmap headBitmap;
    private byte[] cleanRecord;
    private String cleanRecordDate;
    private int statu;
    private String version;
    private int progress;
    private String allStatus;
    private String status;
    private String subStatus;
    private String subMode;
    private String mode;
    private String type;
    private String suction;
    Map<String, Object> dps;
    private Object object;
    private boolean state;


    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    //本地读取地图数据缓存
    private String map;
    private String other;
    private String pathx;
    private String pathy;

    public String getMap() {
        return map;
    }

    public void setMap(String map) {
        this.map = map;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getPathx() {
        return pathx;
    }

    public void setPathx(String pathx) {
        this.pathx = pathx;
    }

    public String getPathy() {
        return pathy;
    }

    public void setPathy(String pathy) {
        this.pathy = pathy;
    }


    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public String getSuction() {
        return suction;
    }

    public void setSuction(String suction) {
        this.suction = suction;
    }

    public String getAllStatus() {
        return allStatus;
    }

    public void setAllStatus(String allStatus) {
        this.allStatus = allStatus;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSubStatus() {
        return subStatus;
    }

    public void setSubStatus(String subStatus) {
        this.subStatus = subStatus;
    }

    public String getSubMode() {
        return subMode;
    }

    public void setSubMode(String subMode) {
        this.subMode = subMode;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Map<String, Object> getDps() {
        return dps;
    }

    public void setDps(Map<String, Object> dps) {
        this.dps = dps;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public byte[] getMapData() {
        return mapData;
    }

    public void setMapData(byte[] mapData) {
        this.mapData = mapData;
    }

    public ArrayList<TimerTask> getTaskArrayList() {
        return taskArrayList;
    }

    public void setTaskArrayList(ArrayList<TimerTask> taskArrayList) {
        this.taskArrayList = taskArrayList;
    }

    public Bitmap getHeadBitmap() {
        return headBitmap;
    }

    public void setHeadBitmap(Bitmap headBitmap) {
        this.headBitmap = headBitmap;
    }

    public byte[] getCleanRecord() {
        return cleanRecord;
    }

    public void setCleanRecord(byte[] cleanRecord) {
        this.cleanRecord = cleanRecord;
    }

    public String getCleanRecordDate() {
        return cleanRecordDate;
    }

    public void setCleanRecordDate(String cleanRecordDate) {
        this.cleanRecordDate = cleanRecordDate;
    }

    public int getStatu() {
        return statu;
    }

    public void setStatu(int statu) {
        this.statu = statu;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

//    public RobotParamBean getRobotParamBean() {
//        return robotParamBean;
//    }
//
//    public void setRobotParamBean(RobotParamBean robotParamBean) {
//        this.robotParamBean = robotParamBean;
//    }
}
